home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Supervisor's Toolkit
/
Network Supervisor's Toolkit.iso
/
menus
/
amsmnu15
/
pclogin.bat
< prev
next >
Wrap
DOS Batch File
|
1996-07-10
|
2KB
|
49 lines
Echo On
: Remove this REM when everything is working OK.
REM @Echo Off
: To help in the configuration of this file, we suggest you list it to the
: printer, use COPY PCLOGIN.BAT LPT1
: This is a sample batch file for use with Netware Lite. It is intended for use
: by people unfamiliar with networking, and for those attempting to
: establish a single main FileServer network, although the concepts may also be
: useful to more experienced networkers.
: You should copy this batch file to each computer attaching to
: the network. This file is designed to run in conjunction with the file
: LITLOGIN.BAT
: This file should be called at the end of each Client's AUTOEXEC.BAT file.
: [Assuming you want each Client to automatically attach to the network when
: they switch on]. To do this, copy this file to the \NWLITE directory of
: each client, and add to the end of AUTOEXEC.BAT, PCLOGIN
: You should also add the PCLOGIN command to the end of the server's
: AUTOEXEC.BAT file.
: This command call's Novell's batch file to start the network.
CALL STARTNET
: Now ask someone to Login
:LOGINAUSER
CLS
NET LOGIN
: Now map the L: drive to the drive on the Server with the Public directory.
: You may need to change CDRIVE to a different network directory.
NET MAP L: CDRIVE
: If you see an error at this point, you probably need to set LASTDRIVE=M in
: your CONFIG.SYS file. See your DOS manual for more information.
: Now change drive L: to the public directory and run the common login batch
: file. You may need to change \PUBLIC if your public directory is called
: something else. [See Quick Start For Netware Lite Users for more information]
L:
CD \PUBLIC
LITLOGIN
: This last part of the program checks that the login was successful, and if
: not takes the user back to login again. Ensure the file LITLOGIN.BAT is not
: on the client PC for this to work.
If not exist LITLOGIN.BAT goto LOGINAUSER